<div id="uploking_box">
	<div id="uploking_box_header">
		<h2><?php echo lang('uploking_select_destination_folder_label')?></h2>
	</div>
	<div id="uploking_box_error"></div>
	<div id="uploking_box_content">
		<div id="list_folder_box">
			<ul class="sortable">
				<li id="root-folder">
					<div>
						<a href="#" rel="0">Root</a>
					</div>
					<ul>
						<?php foreach($pages as $page): ?>
								<li id="page_<?php echo $page['id']; ?>">
									<div>
										<a href="#" rel="<?php echo $page['id']; ?>"><?php echo $page['name']; ?></a>
									</div>
							
								<?php if(isset($page['children'])): ?>
									<ul>
										<?php $controller->tree_builder($page); ?>
									</ul>
								</li>
							
								<?php else: ?>
								
								</li>
							<?php endif; ?>
						<?php endforeach; ?>
			
					</ul>
				</li>
			</ul>	
		</div>
		<div id="uplokin_button_wrapper">
			<input class="uploking_button" id="close-list-folder-fox" type="button" value="<?php echo lang('uploking_new_folder_cancel_label')?>"/>
			<input class="uploking_button" id="submit-list-folder-fox" type="button" value="<?php echo lang('uploking_move_file_folder_label')?>"/>
		</div>
	</div>
</div>
